<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<style type="text/css">
input {
	margin-top: 5px;
	margin-bottom: 5px;
}
select {
	margin-top: 5px;
	margin-bottom: 5px;
}
</style>
<script type="text/javascript">
	function fun(){
		var username = $("#username").val();
		var password = $("#password").val();
		var name = $("#name").val();
		var sex = $("#sex").val();
		var bjid = $("#bjid").val();
		var post = $("#post").val();
		$("#ddd").load("addxs?username="+username+"&password="+password+"&name="+name+"&sex="+sex+"&bjid="+bjid+"&post="+post);
		$('#id2').dialog('close');
	}
</script>
<div style="width: 240px; margin-left: 30px;">
<form action="addxs" method="post">
<input type="hidden" id="bjid" value="${param.bjid}">
学号：<input type="text" id="username"><br/>
密码：<input type="text" id="password"><br/>
姓名：<input type="text" id="name"><br/>
性别：<select id="sex">
		<option>男</option>
		<option>女</option>
	</select><br/>
职务：<input type="text" id="post"><br/>

<button type="button" onclick="fun()" style="margin-right: 20px; margin-left: 40px" class="btn btn-primary btn btn-sm btn-lg bbb">提交</button>
<button type="reset" class="btn btn-primary btn btn-sm btn-lg bbb">重置</button>

</form>
</div>